package com.greendragon.service.frontend; 

import com.greendragon.persistence.domain.User;


/** 
 * @author wulibin, exceptsky@gmail.com, 2011-9-9 下午07:06:10
 * 
 */
public interface IUserFrontendService extends IBaseFrontendService<User>{
	
	public void add(User user);
	
	public User login(String name, String pw);
	
	public void register(User user);
	
	public User getByName(String name);
	
	public User updatePassword(User user, String oldPw, String newPw)throws Exception;
	
	public String getSecurityQuestion(long uid);
	
	public String getSecurityAnswer(long uid);
	
	public void update(User user);
	
}
 